package cn.kinoko.model.auth.req;

import cn.kinoko.common.constant.RegexpConstant;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;


/**
 * 用户注册请求对象
 * @author kinoko
 * @date 2023/8/2 11:02
 */
@Data
public class RegisterReq {
    /**
     * 密码
     */
    @Pattern(regexp = RegexpConstant.PASSWORD, message = "密码格式错误")
    @NotBlank(message = "请填写密码")
    private String password;

    /**
     * 邮箱
     */
    @Pattern(regexp = RegexpConstant.EMAIL, message = "邮箱格式错误")
    private String email;

    /**
     * 验证码
     */
    @NotBlank(message = "请输入验证码")
    private String code;

}